package com.damage.common;

import com.damage.common.init.InitGroup;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class CommonApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(CommonApplication.class, args);
//		InitGroup initGroup = (InitGroup) context.getBean("initGroup");
//		initGroup.init();

	}

}

//@SpringBootApplication
//public class CommonApplication extends SpringBootServletInitializer {
//
//	@Override
//	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//		// 注意这里要指向原先用main方法执行的Application启动类
//		return builder.sources(CommonApplication.class);
//	}
//
//	public static void main(String[] args) {
//		SpringApplication.run(CommonApplication.class, args);
//	}
//}
